package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseSaleAttr;
import com.atguigu.gmall.model.product.SpuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SpuManageMapper extends BaseMapper<SpuInfo> {
    List<SpuInfo> getSpuByPage(@Param("offset") int offset, @Param("limit")int limit,@Param("category3Id") Long category3Id);

    int countAll();

    void saveSpuInfo(SpuInfo spuInfo);
}
